package com.ruoyi.place.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 康复救助中心业务对象 place_kfjzzx
 *
 * @author xiaohao
 * @date 2023-01-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PlaceKfjzzxBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long kfjzzxId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String address;

    /**
     * 电话
     */
    @NotBlank(message = "电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String mobile;

    /**
     * 面积
     */
    @NotNull(message = "面积不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal area;

    /**
     * 可容纳人数
     */
    @NotNull(message = "可容纳人数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long krnrs;

    /**
     * 负责人
     */
    @NotBlank(message = "负责人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fzr;

    /**
     * 床位
     */
    @NotNull(message = "床位不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long cw;


}
